var express = require('express');
var router = express.Router();
const { getLessors } = require('../service/adminLessorsService');

router.get('/getLessors', async function(req, res, next) {
    const query = req.query;
    const data = await getLessors(query);
    res.send(data);
});

module.exports = router;